/**
 * 
 */
package com.shiro.service;

import java.util.List;
import java.util.Set;

import com.shiro.pojo.Role;
import com.shiro.pojo.User;

/**
 * @author zyj
 *
 */
public interface RoleService {
	public Set<String> listRoleNames(String userName);
    public List<Role> listRoles(String userName);
    public List<Role> listRoles(User user);
 
    public List<Role> list();
    public void add(Role role);
    public void delete(Long id);
    public Role get(Long id);
    public void update(Role role);
}
